Skip to main content

Delete Mail

AutomatR.Office365.Activities.DeleteMail

The "Delete Mail" activity in AutomatR is part of the Office 365 activities package, allowing automation processes to utilize the Microsoft Office message API for deleting email messages. This activity streamlines the deletion of specific email messages within an Office 365 mailbox.

Properties

NameDescription
Input
Mail MessageSpecifies the mail message variable representing the email message to be deleted. This field only supports a mail message variable. Ensure that the variable contains the necessary information for identification.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete Mail" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Delete Mail" activity onto the workflow.
  2. Configure the properties by specifying the delay duration, mail message variable representing the email to be deleted, and customize the display name if needed.
  3. Execute the workflow to delete the specified email message within Office 365.

Example: Consider an example where the "Delete Mail" activity is used to delete an email message:

Delete Mail:
Display Name: "Delete Important Email"
Mail Message: mailMessageVariable

In this example, the activity deletes the email message specified by the "mailMessageVariable." Adjust the properties according to your specific use case and workflow requirements.